﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;

/// <summary>
/// Summary description for search
/// </summary>
public class search
{
    public static bool search2(string line)
    {
        SqlConnection conn = new SqlConnection("Data Source=SA3EED-PC;Initial Catalog=SWE2;Integrated Security=True;MultipleActiveResultSets=True");
        conn.Open();
      
        string s = string.Format("select * from [Question_table] where [Question] like '%" + line + "%'");
        SqlCommand cmd= new SqlCommand(s, conn);
        cmd.ExecuteNonQuery();
        
        
        conn.Close();
       
       
        return true;
    }
}